// 导入工具类 @项目根路径
import request from "@/utils/request"

//获取就诊人信息
export const getAllPatients = (patient) => {
    //数据处理
    if(patient.flag==0){
        return request.get(`/patient/getAllPatient`,patient);
    }else{
        return request.get(`/patient/getAllPatients`,patient);
    }
}
//添加就诊人信息
export const addPatient = (form) => {
    //数据处理
    return request.post("/patient/insertPatient",form,"POST");
}
//修改就诊人信息
export const updatePatient = () => {
    //数据处理
    return request.post("/patient/updatePatient");
}
//注销就诊人信息
export const deletePatient = (patientId) => {
    //数据处理
    return request.get(`/patient/deletePatient?patientId=${patientId}`);
}